package bean;

public class BeanImpl implements Bean {
    private String var1;

    public String getVar1() {
        return var1;
    }

    public void setVar1(String var1) {
        this.var1 = var1;
    }

    @Override
    public void method1() {
        System.out.println(1 / 0);
    }

    @Override
    public void method2() {
        System.out.println("打印的字符串为");
        System.out.println(getVar1());
    }
}
